]> dgit.raspbian.org Git - gnome-shell.git/commit
js: Use const declarations where possible
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 24 Oct 2025 11:39:37 +0000 (13:39 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 24 Oct 2025 13:37:58 +0000 (15:37 +0200)
commit3f8b174274fac7d69477523d4873ef8253e1ed49
tree1e5c2ff89c516851f941644d4a51b470ab98802d
parentd1f8c00d2f47d440905a0af3253589cbd0822a3a
js: Use const declarations where possible

It is useful to indicate clearly that a value is read-only, and
we have already been doing so for new code for a long time. But
in order to actually enforce this, we have to adjust all existing
code.

Luckily the change is trivial enough to do (thanks to `eslint --fix`),
so do it now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3931>
122 files changed:
docs/js-coding-style.md
js/dbusServices/extensions/extensionPrefsDialog.js
js/gdm/authList.js
js/gdm/authPrompt.js
js/gdm/batch.js
js/gdm/loginDialog.js
js/gdm/realmd.js
js/gdm/util.js
js/misc/breakManager.js
js/misc/dbusUtils.js
js/misc/extensionUtils.js
js/misc/fileUtils.js
js/misc/history.js
js/misc/ibusManager.js
js/misc/inputMethod.js
js/misc/introspect.js
js/misc/jsParse.js
js/misc/keyboardManager.js
js/misc/loginManager.js
js/misc/modemManager.js
js/misc/objectManager.js
js/misc/params.js
js/misc/parentalControlsManager.js
js/misc/smartcardManager.js
js/misc/systemActions.js
js/misc/util.js
js/misc/weather.js
js/portalHelper/main.js
js/ui/accessDialog.js
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/appFavorites.js
js/ui/audioDeviceSelection.js
js/ui/background.js
js/ui/barLevel.js
js/ui/boxpointer.js
js/ui/calendar.js
js/ui/checkBox.js
js/ui/closeDialog.js
js/ui/components.js
js/ui/components/automountManager.js
js/ui/components/autorunManager.js
js/ui/components/keyring.js
js/ui/components/networkAgent.js
js/ui/components/polkitAgent.js
js/ui/ctrlAltTab.js
js/ui/dash.js
js/ui/dateMenu.js
js/ui/dialog.js
js/ui/dnd.js
js/ui/endSessionDialog.js
js/ui/environment.js
js/ui/extensionDownloader.js
js/ui/extensionSystem.js
js/ui/grabHelper.js
js/ui/ibusCandidatePopup.js
js/ui/iconGrid.js
js/ui/inhibitShortcutsDialog.js
js/ui/kbdA11yDialog.js
js/ui/keyboard.js
js/ui/layout.js
js/ui/lightbox.js
js/ui/locatePointer.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/main.js
js/ui/messageList.js
js/ui/messageTray.js
js/ui/modalDialog.js
js/ui/mpris.js
js/ui/notificationDaemon.js
js/ui/osdMonitorLabeler.js
js/ui/osdWindow.js
js/ui/overview.js
js/ui/overviewControls.js
js/ui/padOsd.js
js/ui/pageIndicators.js
js/ui/panel.js
js/ui/panelMenu.js
js/ui/pointerA11yTimeout.js
js/ui/pointerWatcher.js
js/ui/popupMenu.js
js/ui/quickSettings.js
js/ui/remoteSearch.js
js/ui/runDialog.js
js/ui/screenShield.js
js/ui/screenshot.js
js/ui/scripting.js
js/ui/search.js
js/ui/searchController.js
js/ui/sessionMode.js
js/ui/shellDBus.js
js/ui/shellEntry.js
js/ui/shellMountOperation.js
js/ui/slider.js
js/ui/status/accessibility.js
js/ui/status/dwellClick.js
js/ui/status/keyboard.js
js/ui/status/location.js
js/ui/status/network.js
js/ui/status/remoteAccess.js
js/ui/status/system.js
js/ui/status/thunderbolt.js
js/ui/status/volume.js
js/ui/swipeTracker.js
js/ui/switchMonitor.js
js/ui/switcherPopup.js
js/ui/unlockDialog.js
js/ui/userWidget.js
js/ui/windowAttentionHandler.js
js/ui/windowManager.js
js/ui/windowMenu.js
js/ui/windowPreview.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js
js/ui/workspacesView.js
js/ui/xdndHandler.js
subprojects/extensions-app/js/extensionManager.js
subprojects/extensions-tool/src/templates/indicator/extension.js
tests/shell/core.js
tests/shell/hwtest.js
tests/unit/jsParse.js